<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Cache-Control" content="max-age=300" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${query} - 搜索</title>
<meta name="Keywords" content="java,java" />
<meta name="description" content="找到了${totalRecords }个" />
</head>
<body>
	<div id="o-header-2013">
	<div class="w" id="header-2013">
		<div id="search-2013">
			<div class="i-search ld">
				<ul id="shelper" class="hide">
				</ul>
				<div class="form">
					<input type="text" class="text" accesskey="s" id="q" autocomplete="off" onkeydown="javascript:if(event.keyCode==13) search('q');">
					<input type="button" value="搜索" class="button" onclick="search('q');return false;" clstag="homepage|keycount|home2013|03a">
				</div>
			</div>
			<div id="hotwords" clstag="homepage|keycount|home2013|03b"></div>
		</div>
	</div>
	
<div class="w main">
	<div class="crumb">全部结果&nbsp;&gt;&nbsp;<strong>"${query}"</strong></div>
	<div class="clr"></div>
	<div class="m clearfix" id="bottom_pager">
		<div  id="pagin-btm" class="pagin fr" clstag="search|keycount|search|pre-page2">
			<span class="prev-disabled">上一页<b></b></span>
			<a href="javascript:void(0)" class="current">1</a>
			<a href="search?keyword=java&enc=utf-8&qr=&qrst=UNEXPAND&rt=1&page=2">2</a>
			<a href="search?keyword=java&enc=utf-8&qr=&qrst=UNEXPAND&rt=1&page=3">3</a>
			<a href="search?keyword=java&enc=utf-8&qr=&qrst=UNEXPAND&rt=1&page=4">4</a>
			<a href="search?keyword=java&enc=utf-8&qr=&qrst=UNEXPAND&rt=1&page=5">5</a>
			<a href="search?keyword=java&enc=utf-8&qr=&qrst=UNEXPAND&rt=1&page=6">6</a>
			<span class="text">…</span>
			<a href="search?keyword=java&enc=utf-8&qr=&qrst=UNEXPAND&rt=1&page=2" class="next">下一页<b></b></a>
			<span class="page-skip"><em>&nbsp;&nbsp;共${totalPages}页&nbsp;&nbsp;&nbsp;&nbsp;到第</em></span>
		</div>
	</div>
	<div class="m psearch " id="plist">
		<ul class="list-h clearfix" tpl="2">
			<c:forEach items="${searchVoList}" var="searchVo">
				<li class="searchVo-book" bookid="11078102">
					
					<div class="p-name">
						<a target="_blank" href="www.taotaomall.com/searchVo/${searchVo.id }.html">
							${searchVo.title}
						</a>
					</div>
					
					<div class="extra">
						<span class="star"><span class="star-white"><span class="star-yellow h5">&nbsp;</span></span></span>
					</div>
				</li>
			</c:forEach>
		</ul>
	</div>
</div>


<script type="text/javascript">

	SEARCH.page = function(b, a) {
	    b = parseInt(b, 10);
	    if (b < 1) {
	        b = 1
	    }
	    window.location = "${ctx}/search/search?q="+SEARCH.query+"&page="+b;
	//    if (a) {
	//        window.scrollTo(0, $("#filter").offset().top)
	//    }
	   // searchlog(1, b, 0, 56)
	};

	//${paginator.totalPages}

	
	
	function search(q) {
	    var b = "${ctx}/search/search?q=''" + encodeURIComponent(document.getElementById(q).value);
	    return window.location.href = b;
	}

</script>
</body>
</html>